\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address}{
\section{Zebulon::Underwater::SetMotorAddress Class Reference}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address}\index{Zebulon::Underwater::SetMotorAddress@{Zebulon::Underwater::SetMotorAddress}}
}


Command message to set the desired motor address.  


{\ttfamily \#include $<$setmotoraddress.h$>$}Inheritance diagram for Zebulon::Underwater::SetMotorAddress::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_zebulon_1_1_underwater_1_1_set_motor_address}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a98f2cc04b3813094f2b7fc3a2a651d3c}{
\hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a98f2cc04b3813094f2b7fc3a2a651d3c}{SetMotorAddress} ()}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a98f2cc04b3813094f2b7fc3a2a651d3c}

\begin{DoxyCompactList}\small\item\em Constructor. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a3d8aebb4c471038b93e2f5308e4344a7}{
virtual \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a3d8aebb4c471038b93e2f5308e4344a7}{$\sim$SetMotorAddress} ()}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a3d8aebb4c471038b93e2f5308e4344a7}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a0bb6675f84bd8073a8ffd377b00d4b3a}{WriteMessageBody} (CxUtils::Packet \&packet) const 
\begin{DoxyCompactList}\small\item\em Writes the contents of the message payload to the packet. \item\end{DoxyCompactList}\item 
virtual int \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a50eb8cd8489739c87a622d1ac27b09ba}{ReadMessageBody} (const CxUtils::Packet \&packet)
\begin{DoxyCompactList}\small\item\em Reads the contents of the message payload from the packet, and saves to internal data members. \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a2815099ba04a29eef2990fad21366e0f}{
virtual void {\bfseries Print} () const }
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a2815099ba04a29eef2990fad21366e0f}

\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_aec1dba30247161d332373753cf3dc0d8}{
virtual Message $\ast$ \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_aec1dba30247161d332373753cf3dc0d8}{Clone} () const }
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_aec1dba30247161d332373753cf3dc0d8}

\begin{DoxyCompactList}\small\item\em Makes a clone of the message. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a071f455d3b2eed93debcd4a40b171f0f}{
unsigned char \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a071f455d3b2eed93debcd4a40b171f0f}{mCurrentAddress}}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a071f455d3b2eed93debcd4a40b171f0f}

\begin{DoxyCompactList}\small\item\em current address of motor \item\end{DoxyCompactList}\item 
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a8e6a2aa4b3673f00cee16dbf20b7efbc}{
unsigned char \hyperlink{class_zebulon_1_1_underwater_1_1_set_motor_address_a8e6a2aa4b3673f00cee16dbf20b7efbc}{mNewAddress}}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a8e6a2aa4b3673f00cee16dbf20b7efbc}

\begin{DoxyCompactList}\small\item\em new address of motor \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Command message to set the desired motor address. 

\subsection{Member Function Documentation}
\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a50eb8cd8489739c87a622d1ac27b09ba}{
\index{Zebulon::Underwater::SetMotorAddress@{Zebulon::Underwater::SetMotorAddress}!ReadMessageBody@{ReadMessageBody}}
\index{ReadMessageBody@{ReadMessageBody}!Zebulon::Underwater::SetMotorAddress@{Zebulon::Underwater::SetMotorAddress}}
\subsubsection[{ReadMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int SetMotorAddress::ReadMessageBody (const CxUtils::Packet \& {\em packet})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a50eb8cd8489739c87a622d1ac27b09ba}


Reads the contents of the message payload from the packet, and saves to internal data members. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]Packet to read from.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
4 on success, 0 on failure. 
\end{DoxyReturn}


Reimplemented from \hyperlink{class_zebulon_1_1_m_c_u_1_1_message}{Zebulon::MCU::Message}.\hypertarget{class_zebulon_1_1_underwater_1_1_set_motor_address_a0bb6675f84bd8073a8ffd377b00d4b3a}{
\index{Zebulon::Underwater::SetMotorAddress@{Zebulon::Underwater::SetMotorAddress}!WriteMessageBody@{WriteMessageBody}}
\index{WriteMessageBody@{WriteMessageBody}!Zebulon::Underwater::SetMotorAddress@{Zebulon::Underwater::SetMotorAddress}}
\subsubsection[{WriteMessageBody}]{\setlength{\rightskip}{0pt plus 5cm}int SetMotorAddress::WriteMessageBody (CxUtils::Packet \& {\em packet}) const\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_zebulon_1_1_underwater_1_1_set_motor_address_a0bb6675f84bd8073a8ffd377b00d4b3a}


Writes the contents of the message payload to the packet. 
\begin{DoxyParams}{Parameters}
\item[\mbox{$\leftarrow$} {\em packet}]Packet to write to.\end{DoxyParams}
\begin{DoxyReturn}{Returns}
4 on success, 0 on failure. 
\end{DoxyReturn}


Reimplemented from \hyperlink{class_zebulon_1_1_m_c_u_1_1_message}{Zebulon::MCU::Message}.

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/underwater/include/underwater/messages/\hyperlink{setmotoraddress_8h}{setmotoraddress.h}\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/underwater/src/underwater/messages/\hyperlink{setmotoraddress_8cpp}{setmotoraddress.cpp}\end{DoxyCompactItemize}
